﻿namespace System.Web.Mvc.Html
{

    public static class HtmlExtensionMethods
    {
        /// <summary>
        /// Returns an error alert that lists each model error, much like the standard ValidationSummary only with
        /// altered markup for the Twitter bootstrap styles.
        /// </summary>

        public static MvcHtmlString BootstrapValidationSummary(this HtmlHelper helper, string validationMessage = "")
        {
            var result = ValidationExtensions.ValidationSummary(helper, validationMessage).ToString();
            var isNotShow = result.Contains("<li style=\"display:none\"></li>");
             
            return MvcHtmlString.Create(result);
        }
    }
}


